package com.vito.oa.email.sign.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.vito.oa.email.model.OaEmailSignModel;
import com.vito.oa.email.sign.dao.OaEmailSignMapper;
import com.vito.oa.email.sign.service.OaEmailSignService;

@Service
public class OaEmailSignServiceImpl implements OaEmailSignService {

	private static final Logger log = LoggerFactory.getLogger(OaEmailSignServiceImpl.class);
	
	@Autowired
	private OaEmailSignMapper emailSignMapper;

	public int saveEmailSign(OaEmailSignModel emailSignModel) {
		return emailSignMapper.saveEmailSign(emailSignModel);
	}

	public int updateEmailSign(OaEmailSignModel emailSignModel) {
		return emailSignMapper.updateEmailSign(emailSignModel);
	}

	public OaEmailSignModel getEmailSignByUserId(String userId) {
		return emailSignMapper.getEmailSignByUserId(userId);
	}

	public OaEmailSignModel getEmailSignById(String id) {
		return emailSignMapper.getEmailSignById(id);
	}
			
}
